aget = [{'doctor__id': 3, 'doctor__name': '兰婷'}]

lis = {i['doctor__id'] for i in aget}
print(lis)